<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="base :: header (title='外协检验')" />
<link th:href="@{plugins/common/css/basemessageDesk.css}" rel="stylesheet" />
<link th:href="@{plugins/common/css/basemessage.css}" rel="stylesheet" />
<link th:href="@{css/jobBooking/qualityChecking.css}" rel="stylesheet" />
<body class="sticky-header left-side-collapsed blank_bg" style="">
	<header class="topbar">
		<!-- page heading start-->
		<div class="head" id="titleHide">
			<div class="headTitle">外协检验</div>
			<div class="backIcon" title="返回" onclick="javascript:history.back(-1);">
				<i class="fa fa-arrow-left"></i>
			</div>
		</div>
		<div class="page-heading">
			<div class="" >				
				<div style="margin-bottom: 5px;">
							<div style="text-align:right;color:red;font-size:22px;font-weight:700;">
								<span class="spanCss">当前用户：</span> 
								<input type="text" id="dname" name="dname" class=" form-control"  readonly="readonly" style="font-size:20px;width:150px;"/></td>
								<input type="text" id="dnameid" name="dnameid" class="clean-c form-control"  readonly="readonly" style="display:none;"/>
							</div>
							<div style="float:left">
								<span class="spanCss">任务单号：</span> 
								<input type="text" id="fIcmoNo" name="fIcmoNo" class="form-control clean_C" style="width: 140px; margin-right: 10px;" autocomplete="off"/> 
								<span class="spanCss">委外单号：</span> 
								<input type="text" id="fBillNo" name="fBillNo" class="form-control clean_C" style="width: 140px; margin-right: 10px;" autocomplete="off"/> 
								<span class="spanCss">委外单位：</span> 
								<input type="text" id="fSupplierName" name="fSupplierName" class="form-control clean_C" style="width: 140px; margin-right: 10px;" autocomplete="off" /> 
								<span class="spanCss">产品代码：</span> 
								<input type="text" id="fNumber" name="fNumber" class="form-control clean_C" style="width: 140px; margin-right: 10px;" autocomplete="off" /> 
								<span class="spanCss">产品名称：</span> 
								<input type="text" id="fName" name="fName" class="form-control clean_C" style="width: 100px; margin-right: 10px;" autocomplete="off" /> 
							</div>
							<div style="float:left">
								<button id="query" class="btn btn-default " type="button" style="margin-left: 10px;">查询</button>
								<button type="button" class="btn btn-default " id="resetting">重置</button>
								<button type="button" class="btn btn-default" id="more">更多</button>
								<!-- <button type="button" class="btn btn-default resetting" id="exporting">导出</button> -->
							</div>
							<div style="clear:both"></div>
						</div>
						<div class="" id="extend" style="margin-top: 5px;display: none;">
							<div style="clear:both;">
								<span class="spanCss">规格型号：</span> 
								<input type="text" id="fModel" name="fModel" class="form-control clean_C" style="width: 140px; margin-right: 10px;" autocomplete="off" /> 
								<span class="spanCss">工序名称：</span> 
								<input type="text" id="fOperName" name="fOperName" class="form-control clean_C" style="width: 100px; margin-right: 10px;" autocomplete="off" /> 
							</div>
						</div>
						<div style="margin-top: 5px;">
							<table id="checkTable" class="table dataTable table-hover tableList" style="">
							</table>
						</div>
				<!-- 外协质检模态框 start -->
				<div class="modal fade " id="checkModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
					<div class="modal-dialog" style="width: 1100px; height: 220px;">
						<div class="modal-content" style="width: auto;">
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
								<h4 class="modal-title" id="titleModal">外协质检</h4>
							</div>
							<div class="modal-body" style="height: auto; padding: 10px;">
								<form id="checkForm" class="form-group">
									<div style="display: inline-block;overflow: hidden;margin-right: 15px;" id="">
										<table border="0" cellspacing="0" cellpadding="0" class="table-condensed normal-table table-content" id="">
											<tr>
												<td class="title"><span class="sub">接收单号：</span></td>
												<td colspan="">
													<input type="text" id="ufBillNo" name="fBillNo" class="clean_c form-control" readonly="readonly">
													<input type="hidden" id="fEntryID" name="fEntryID" class="clean_c form-control" readonly="readonly">
													<input type="hidden" id="fInterID" name="fInterID" class="clean_c form-control" readonly="readonly">
												</td>
												<td class="title"><span class="sub">产品代码：</span></td>
												<td colspan=""><input type="text" id="dispatchingfNumber1" name="fNumber" class="clean_c form-control" readonly="readonly"></td>
												<td class="title"><span class="sub">规格型号：</span></td>
												<td colspan="3">
													<input type="text" id="dispatchingfModel1" name="fModel" class="clean_c form-control" readonly="readonly">
												</td>
											</tr>
											<tr>
												<td class="title"><span class="sub">产品名称：</span></td>
												<td colspan=""><input type="text" id="dispatchingfName1" name="fName" class="clean_c form-control" readonly="readonly"></td>
												<td class="title"><span class="sub">工序号：</span></td>
												<td colspan=""><input type="text" id="dispatchingfOperSN11" name="fOperSN" class="clean_c form-control" readonly="readonly"></td>
												<td class="title"><span class="sub">工序名称：</span></td>
												<td colspan=""><input type="text" id="fOperName1" name="fOperName" class="clean_c form-control" readonly="readonly"></td>
												<td class="title"><span class="sub"><span class="requiredCss">*</span>接收数：</span></td>
												<td colspan=""><input type="text" id="fReceiveQty1" name="fReceiveQty1" class="clean_c form-control" onkeyup = "changeRevice()"></td>
											</tr>
											<tr>
												<td class="title"><span class="sub">供应商：</span></td>
												<td colspan="3"><input type="text" id="fSupplierName" name="fSupplierName" class="clean_c form-control" readonly="readonly"></td>
												<td class="title"><span class="sub"><span class="requiredCss">*</span>接收日期：</span></td>
												<td colspan=""><input type="text" id="fWorkDate" name="fWorkDate" class="clean_c form-control bj_color" readonly="readonly"></td>
											</tr>
										</table>
										<div class="sub" style="width:98%;">
											<button id="addChecks" class="btn btn-default" type="button" style="margin-bottom: 5px;font-size: 24px;">新增检查项</button>
											<table id="checklistsTable" class="table dataTable table-hover checkListTable">
											</table>
										</div>
										<table border="0" cellspacing="0" cellpadding="0" class="table-condensed normal-table table-content" id="" style="margin-top: 5px;">											
											<tr>
												<td class="title" colspan="6"><span style="" class="requiredCss sub">注：带*为必填字段。</span></td>
											</tr>
										</table>
										<div style="width: 100%;position:relative;">
											<div style="text-align: center;margin-top: 15px;">
												<button type="button" class="btn btn-default" id="confirms" style="margin-right: 20px;font-size: 24px;">确定</button>
												<button type="button" class="btn btn-default" id="cancel" data-dismiss="modal" style="font-size: 24px;">取消</button>
											</div>
										</div>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>	
				<!-- 外协质检模态框 end -->
							
				<!-- 输入质检人员卡号模态框 start -->
				<div class="modal fade " id="inputCardModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
					<div class="modal-dialog" style="width: 530px; height: 220px;">
						<div class="modal-content" style="width: auto;">
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
								<h4 class="modal-title" id="titleModal">质检员卡号</h4>
							</div>
							<div class="modal-body" style="height: auto; padding: 10px;">
								<div style="text-align: center;">
									<div>
										<span style="font-size: 20px;">质检员卡号：</span>
										<input type="text" id="fWorkernum" name="fWorkernum" class="clean-c form-control bj_color resetting modalInput" autocomplete="off" />
									</div>
									<div style="margin-top: 10px;">
										<button id="save" class="btn btn-default" type="button" style="margin-right: 20px;font-size: 24px;">确定</button>
										<button id="back" class="btn btn-default" type="button" data-dismiss="modal" style="font-size: 24px;">取消</button>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>	
				<!-- 输入质检人员卡号模态框 end -->
				
				<!-- 调用showPDFList里的listModal，查询图纸列表 -->
				<div th:include="desk/menu/showPDFList :: listModal" />
			</div>
		</div>
		<!-- page heading end-->
	</header>
	<span id="type" style="display: none;">1</span>
	<div th:include="base :: bottom" />
	<div th:include="base :: bootstrapTable" />
	<div th:include="base :: bootstrapTable-eidt" />
	<div th:include="base :: indexPublic" />
	<div th:include="base :: others" />
	<script th:src="@{js/jobBooking/outsideQualityChecking.js}"></script>
	<script th:src="@{js/desk/menu/showPDFList.js}"></script>
</body>
</html>